Home:ALL Converter>iOS 7 and UITableViewDelegate with shouldHighlightRowAtIndexPath

iOS 7 and UITableViewDelegate with shouldHighlightRowAtIndexPath

Ask Time:2013-10-17T16:10:01         Author:Alexander

Json Formatter

I use method - (BOOL)tableView:(UITableView *)tableView shouldHighlightRowAtIndexPath:(NSIndexPath *)indexPath NS_AVAILABLE_IOS(6_0);

This method in iOS 6 called when user tap in cell

Apple write about it:

// -tableView:shouldHighlightRowAtIndexPath: is called when a touch comes down on a row. // Returning NO to that message halts the selection process and does not cause the currently selected row to lose its selected look while the touch is down.

But in iOS 7 this method call even when I try scroll my UITableView. Why? Thank you!

Author:Alexander,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/19421361/ios-7-and-uitableviewdelegate-with-shouldhighlightrowatindexpath
yy